﻿using IService.Tasks;

namespace HangfireTask
{
    /// <summary>
    /// 初始化redis数据
    /// </summary>
    public class InitRedisReserve
    {
        private readonly IHangFireService _Service;

        public InitRedisReserve(IHangFireService service)
        {
            _Service = service;
        }

        public async Task Execute()
        {
            await _Service.AutoBuildRedis();
        }
    }
}